package com.whfc.quality.enums;

/**
 * @author : qzexing
 * @version : 1.0
 * @date : 2020-07-29 16:26
 */
public enum QualityCheckUserType {


    REPORTER(1, "上报人"),

    RECTIFIER(2, "整改人"),

    REVIEWER(3, "复查人"),

    VERIFIER(4, "核验人"),

    CC(5, "抄送人");

    private Integer value;

    private String desc;

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    QualityCheckUserType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static QualityCheckUserType parseValue(int value) {
        switch (value) {
            case 1:
                return REPORTER;
            case 2:
                return RECTIFIER;
            case 3:
                return REVIEWER;
            case 4:
                return VERIFIER;
            case 5:
                return CC;
            default:
                return null;
        }
    }


}
